﻿@model IEnumerable<Angel.Entities.Group_User>  
           
@{
    ViewBag.Title = "Edit Group";
}         
 @*
     <p><b>Member of Group:</b></p>
     @ViewBag.GroupName
     @{ IEnumerable<Angel.Entities.Group_User> list = ViewBag.list;}
     <table id="group_browser_table" class="aui aui-table-rowhover">
     <tr>
     <th width=40%>UserName</th>     
     <th width=40%>Full Name</th>
     <th width=40%>Email</th>
     <th width=40%>Operation</th>
     </tr>
     
     @foreach (var item in list)
    {        
    <tr>
    <td>@item.User.UserName</td>
    <td>@item.User.FullName</td>
    <td>@item.User.Email</td>
    <td>@Html.ActionLink("Remove", "DeleteMember",new {id=item.ID})</td>    
    </tr>    
    }
    </table>
 @Html.ActionLink("Add User to Group", "AddMember", new {id=ViewBag.Id })
 *@
     <div class="content-container">               
        <div class="content-body aui-panel">
            <table class="jiraform jirapanel  maxWidth">
                <tbody>
                    <tr>
                        <td class="jiraformheader">
                            <h3 class="formtitle">Edit Group Members: @ViewBag.GroupName</h3>       
                        </td>
                    </tr>
                    <tr>
                        <td class="jiraformbody">  
                            
                        </td>
                    </tr>
                </tbody>
            </table>
             
     @{ IEnumerable<Angel.Entities.Group_User> list = ViewBag.list;}
     <table id="group_browser_table" class="aui aui-table-rowhover">
     <tr>
     <th width=40%>UserName</th>     
     <th width=20%>Full Name</th>
     <th width=30%>Email</th>
     <th width=10%>Operation</th>
     </tr>
     
     @foreach (var item in list)
    {        
    <tr>
    <td>@item.User.UserName</td>
    <td>@item.User.FullName</td>
    <td>@item.User.Email</td>
    <td>@Html.ActionLink("Remove", "DeleteMember",new {id=item.ID})</td>    
    </tr>    
    }
    </table>
 @Html.ActionLink("Add User to Group", "AddMember", new {id=ViewBag.Id })
            <br />
            <div class="buttons-container form-footer">
                   
                </div>